#define PNAME "sm_syn_plugin_version"

//---------------------------//
// Here are all cvars listed //
//---------------------------//
GetCvars() /* DO NOT MODIFY ANYTHING HERE */
{
	g_OldRespawnSystem = CreateConVar("sm_syn_staticspawn", "0", "<1/0> = Enable/Disable Static Spawn System. Players respawn on start position of the map.",FCVAR_PLUGIN)
	HookConVarChange(g_OldRespawnSystem, OldSpawnSystem)

	g_Save = CreateConVar("sm_syn_save_enable", "0", "<1/0> = Enable/Disable saving the current game. Use the console cmd sm_syn_save to manual save the game.",FCVAR_PLUGIN)
	g_SaveDelay = CreateConVar("sm_syn_save_delay", "30", "Second intervals, where the game will be saved if no one dies. Minimal value: 10 seconds. 0 to disable autosaving.",FCVAR_PLUGIN)
	g_RemoveSave = CreateConVar("sm_syn_save_triggers", "0", "<1> will disable all map specific autosave triggers, recommend only when more than 10 players are on server. WEAK",FCVAR_PLUGIN)
	HookConVarChange(g_RemoveSave, DO_SaveKill)
	
	g_MapEndVote = CreateConVar("sm_syn_mapendvote", "0", "Starting a mapvoting at the end of a map (event game_end)",FCVAR_PLUGIN)
	HookConVarChange(FindConVar("mp_chattime"), g_MapEnd)
	HookConVarChange(g_MapEndVote, g_MapEnd)
	g_VoteExtend = CreateConVar("sm_syn_voteextend", "0", "Starting a map extend vote at end of a map.", FCVAR_PLUGIN)
	g_VoteBegin = CreateConVar("sm_syn_votebegin_min", "3", "Minutes to start extend vote at.", FCVAR_PLUGIN)
	
	g_FallDamage = CreateConVar("sm_syn_blockfalldamage", "0", "<1/0> = Enable/Disable fall damage.",FCVAR_PLUGIN)
	HookConVarChange(g_FallDamage, FallDamageChanged)
	
	g_Vehicle = CreateConVar("sm_syn_vehiclefix", "0", "<1/0> Fix airbot on most puzzle maps.",FCVAR_PLUGIN)
	
	g_Custom = CreateConVar("sm_syn_customfiles", "0", "<1/0> Add removed Weapons to Synergy(Weapon Mp5k and MG1).",FCVAR_PLUGIN)

	g_InfiniteSprint = CreateConVar("sm_syn_infinitesprint", "0", "<1/0> = Enable/Disable infinite aux power. Infinite sprint and breath under water.",FCVAR_PLUGIN)
	HookConVarChange(g_InfiniteSprint, InfiniteBTTRChanged)
	HookConVarChange(FindConVar("sv_infinite_aux_power"), InfiniteAuxChanged)

	g_Stuck = CreateConVar("sm_syn_stuck", "1", "<1/0> = Enable/Disable 'Stuck' Command in console.")
	HookConVarChange(g_Stuck, mStuck)
	g_Explode = CreateConVar("sm_syn_explode", "1", "<1/0> = Enable/Disable 'Explode' Command in console.")
	HookConVarChange(g_Explode, mExplode)
	g_Kill = CreateConVar("sm_syn_kill", "1", "<1/0> = Enable/Disable 'Kill' Command in console.")
	HookConVarChange(g_Kill, mKill)

	g_FakeBot = CreateConVar("sm_syn_addbot", "0", "<1/0> = Enable/Disable Spawn a Bot ingame(Prevent making a map not restart when everyone dies).",FCVAR_PLUGIN)
	HookConVarChange(g_FakeBot, SpawnBot)
	g_FakeBotName = CreateConVar("sm_syn_addbot_name", "PlaceHolder", "Name of the Bot ingame.",FCVAR_PLUGIN)

	g_Items = CreateConVar("sm_syn_items_respawn", "0", "<1/0> = Enable/Disable items respawn.",FCVAR_PLUGIN)
	HookConVarChange(g_Items, ItemRespawn)

	g_Name = CreateConVar("sm_syn_changename", "0", "<1/0> = Enable/Disable add in front of a players name the Group Tag.",FCVAR_PLUGIN)
	g_NameTag = CreateConVar("sm_syn_changenametag", "BttR | ", "The Group Tag, which should be add in front of the players name.",FCVAR_PLUGIN)
	g_NameTag2 = CreateConVar("sm_syn_changenametag2", "bttr", "Abbreviation: The Group Tag, without any quote [$/\"(.*)\"/^ -> $1^|], for better recognizing.",FCVAR_PLUGIN)
	
	g_Spec = CreateConVar("sm_syn_spec_enable", "1", "<1/0> = Enable/Disable Spectator Mode.",FCVAR_PLUGIN)
	
	g_Goto = CreateConVar("sm_syn_goto", "0", "<1/0> = Enable/Disable teleporting to other Players/Clients",FCVAR_PLUGIN)
	
	g_Weapon = CreateConVar("sm_syn_weapontime", "0", "How long dropped weapons should be stay in seconds. 0 = disable to let Synergy handle this (strange behavior).",FCVAR_PLUGIN)
	
	g_SetHealth = CreateConVar("sm_syn_spawnhealth", "0", "Players will be spawned at this health value. <0> = Disable. Recommend 100. ",FCVAR_PLUGIN)
	g_Info = CreateConVar("sm_syn_info", "0", "Displays information that is specified in the file configs/syn_info.txt. <1/0> = Enable/Disable.",FCVAR_PLUGIN)
	g_InfoDelay = CreateConVar("sm_syn_info_showtime", "30", "How long the information should show up in seconds. Recommend 30 seconds.",FCVAR_PLUGIN)
	g_InfoDelay2 = CreateConVar("sm_syn_info_start", "30", "When should the information be show up at the player after player joined server. Recommend 30 seconds.",FCVAR_PLUGIN)

	g_SpawnPlayer = CreateConVar("sm_syn_spawnfast", "1", "<1/0> = Enable/Disable immediate respawn of Players.",FCVAR_PLUGIN)
	HookConVarChange(g_SpawnPlayer, g_SpawnPlayerChanged)
	HookConVarChange(FindConVar("mp_respawndelay"), g_SpawnPlayerChanged)
	g_SpawnDelay = CreateConVar("sm_syn_spawndelay","2.5", "Time to wait until Player will be spawned. Minimal value '2.5'. Recommend '2.5'.")
	g_DissolvePlayer = CreateConVar("sm_syn_dissolveplayer", "0", "<1/0> = Enable/Disable dissolving Player after death.",FCVAR_PLUGIN)
	g_DissolveType = CreateConVar("sm_syn_dissolve_type", "0", "0 = Energy, 1 = Heavy electrical, 2 = Light electrical, 3 = Core Effect.")
	g_DissolveDelay = CreateConVar("sm_syn_dissolve_delay","1", "Delay in seconds before the ragdoll get dissolved. Recommend 0 to 10.")

	g_TelePlayer = CreateConVar("sm_syn_teleplayer", "0", "<1/0> = Enable/Disable Teleporting Players.",FCVAR_PLUGIN)
	g_TeleTeleTime = CreateConVar("sm_syn_teleport_time", "1", "Time to wait until Player will Teleported to saved location.")
	g_TeleWaitTime = CreateConVar("sm_syn_teleport_delay", "10", "Time to wait until Player can Teleport again.")
	g_TeleEffects = CreateConVar("sm_syn_teleport_effects", "1", "<1/0> = Enable/Disable Teleport Effects.")
	g_TeleSaveTime = CreateConVar("sm_syn_saving_time", "0.5", "Time to wait until Player is saved.")
	g_TeleNotice = CreateConVar("sm_syn_tele_notice", "1", "<1/0> = Enable/Disable showing Teleport Triggers.")
	g_Ad = CreateConVar("sm_syn_ad", "1", "Show available Teleport (saveme and teleme) commands to player when they joined the game. Automatically disabled when teleport disabled.")

	g_ChatCommands = CreateConVar("sm_syn_chatcommands", "1", "<1/0> = Enable/Disable All Chat Commands (Stuck,Kill,Camera,Respawn,Console,Overflow,Retry)")
	g_ChatHide = CreateConVar("sm_syn_hidechatcmds", "1", "<1/0> = Hide all common chat commands (prevent spamming chat)")
	g_ChatStuck = CreateConVar("sm_syn_chat_stuck", "0", "<1/0> = Enable Chat !Stuck Command")
	g_ChatKill = CreateConVar("sm_syn_chat_kill", "0", "<1/0> = Enable Chat !Kill Command")
	g_ChatCamera = CreateConVar("sm_syn_chat_camera", "0", "<1/0> = Enable Chat !Camera Command")
	g_ChatRespawn = CreateConVar("sm_syn_chat_respawn", "0", "<1/0> = Enable Chat !Respawn Command")
	g_ChatConsole = CreateConVar("sm_syn_chat_console", "0", "<1/0> = Enable Chat !Console Command")
	g_ChatOverflow = CreateConVar("sm_syn_chat_overflow", "0", "<1/0> = Enable Chat !Overflow Command")
	g_ChatRetry = CreateConVar("sm_syn_chat_retry", "0", "<1/0> = Enable Chat !Retry Command")

	CreateConVar(PNAME, VERSION, "A Plugin for Synergy", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY|FCVAR_DONTRECORD)
}